package com.ian.service.impl;

import com.ian.dao.PerCardMapper;
import com.ian.pojo.PerCard;
import com.ian.service.PerCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class PerCardServiceImpl implements PerCardService {
    @Autowired
    PerCardMapper perCardMapper;

    @Transactional
    @Override
    public int updateByPrimaryKeySelective(PerCard record) {
        return perCardMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public PerCard findByUid(Integer perUserId) {
        return perCardMapper.findByUid(perUserId);
    }
}
